a0ae3020f81e8cb143c963bda7a4542830c88de4,zul/src/org/zkoss/zul/Datebox.java,Datebox,setFormat,#String#,295

Before Change


 </table>
 	 */
	public void setFormat(String format) throws WrongValueException {
		if (format == null || format.length() == 0) {
			format = getDefaultFormat(); //backward compatible
		} else {
			boolean bCustom = true;
			int ds = format.indexOf('+');
			if (ds > 0) {
				int ts = toStyle(format.substring(ds + 1));
				if (ts != -111) {
					ds = toStyle(format.substring(0, ds));
					if (ds != -111) {

After Change


 </table>
 	 */
	public void setFormat(String format) throws WrongValueException {
		if (format == null) {
			format =  "";
		} else if (format.length() != 0) {
			boolean bCustom;
			int j = format.indexOf('+');
			if (j > 0) {
				bCustom = toStyle(format.substring(j + 1)) == -111
					|| toStyle(format.substring(0, j)) == -111;
			} else {
				bCustom = toStyle(format) == -111;